import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    commentMax: 99,
    // 文章ID
    actionsArtId: '',
    homeArticleActionsShow: false,
    // 一级反馈内容
    firstActions: [{ name: '不感兴趣' }, { name: '反馈垃圾内容' }],
    // 二级反馈内容
    secondActions: [{
      value: 0,
      name: '其它问题'
    },
    {
      value: 1,
      name: '标题夸张'
    },
    {
      value: 2,
      name: '低俗色情'
    },
    {
      value: 3,
      name: '错别字多'
    },
    {
      value: 4,
      name: '旧闻重复'
    },
    {
      value: 6,
      name: '内容不实'
    },
    {
      value: 8,
      name: '侵权'
    },
    {
      value: 5,
      name: '广告软文'
    },
    {
      value: 7,
      name: '涉嫌违法犯罪'
    }],
    headImgUrl: '' // 用户头像地址
  },
  mutations: {
    changeHomeArticleActionsShow (state, bool) {
      state.homeArticleActionsShow = bool
    },
    setactionsArtIdMutations (state, artId) {
      state.actionsArtId = artId
    },
    setHeadImgurlMutations (state, url) {
      state.headImgUrl = url
    }
  },
  actions: {
  },
  modules: {
  }
})
